package com.brainhealth.customer.service;

import java.util.List;

import com.brainhealth.customer.domain.Customer;
import com.brainhealth.customer.domain.ScoreMallOrder;

import javax.servlet.http.HttpServletRequest;

/**
 * 积分商城订单Service接口
 * 
 * @author wolong
 * @date 2023-11-01
 */
public interface IScoreMallOrderService 
{
    /**
     * 查询积分商城订单
     * 
     * @param id 积分商城订单主键
     * @return 积分商城订单
     */
    public ScoreMallOrder selectScoreMallOrderById(Long id);

    /**
     * 查询积分商城订单（根据订单编号）
     * @param orderId 订单编号
     * @return
     */
    ScoreMallOrder selectScoreMallOrderByOrderId(String orderId);

    /**
     * 查询积分商城订单列表
     * @param scoreMallOrder
     * @return
     */
    List<ScoreMallOrder> getScoreMallOrderList(ScoreMallOrder scoreMallOrder);

    /**
     * 查询积分商城订单列表
     * 
     * @param scoreMallOrder 积分商城订单
     * @return 积分商城订单集合
     */
    public List<ScoreMallOrder> selectScoreMallOrderList(ScoreMallOrder scoreMallOrder);

    /**
     * 新增积分商城订单
     * 
     * @param scoreMallOrder 积分商城订单
     * @return 结果
     */
    public int insertScoreMallOrder(ScoreMallOrder scoreMallOrder);

    /**
     * 修改积分商城订单
     * 
     * @param scoreMallOrder 积分商城订单
     * @return 结果
     */
    public int updateScoreMallOrder(ScoreMallOrder scoreMallOrder);

    /**
     * 批量删除积分商城订单
     * 
     * @param ids 需要删除的积分商城订单主键集合
     * @return 结果
     */
    public int deleteScoreMallOrderByIds(Long[] ids);

    /**
     * 删除积分商城订单信息
     * 
     * @param id 积分商城订单主键
     * @return 结果
     */
    public int deleteScoreMallOrderById(Long id);

    /**
     * 传递商品ID购买商品
     * @param goodsId
     * @return
     */
    public boolean useScoreBuyGoods(HttpServletRequest request, Long goodsId);
}
